Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sentry to grid deployer #1269

Open
wants to merge 3 commits into
base: development
Choose a base branch
from
Open

Conversation

rawdaGastan
Copy link
Collaborator

Related Issues


return gridSentry{
sentryInfo: &sentryInfo{twinID: twinID},
}, sentry.Init(sentry.ClientOptions{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest you initialize sentry in a separate step so it's clear what you're doing

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't get what you mean?

Comment on lines 9 to 15
type gridSentry struct {
*sentryInfo
}

type sentryInfo struct {
twinID uint32
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason for creating two structs here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for clearance but I can merge them

}, sentry.Init(sentry.ClientOptions{
Dsn: SentryDSN[network],
Environment: network,
Debug: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use the debug flag passed on creating the plugin

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is different here as we will check the issues info and we need to have all debug info so the user shouldn't decide it

@rawdaGastan rawdaGastan marked this pull request as draft January 15, 2025 13:15
@rawdaGastan rawdaGastan marked this pull request as ready for review January 19, 2025 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants